<!DOCTYPE html>
<html>
  <head>
    <title>JSTest4.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">

	<script type="text/javascript">

	
		/**读写属性节点和设置属性值*/
		window.onload = function(){
			//获得元素节点
			var name = document.getElementById("name");
			//显示元素节点内容
			alert(name.value);
			//设置元素节点内容
			name.value = "ASDASD";
		}
		
	</script>    

  </head>
  
  <body>
    name:<input type="text" id="name" value="asd">
  </body>
</html>
